<?php
$installer = $this;
$installer->startSetup();
$installer->run("
        DROP TABLE IF EXISTS `rumall_lottery_event`;
            CREATE TABLE `rumall_lottery_event` (
              `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
              `draw_code` int(11) unsigned NOT NULL COMMENT '抽奖码',
              `events_code` varchar(64) DEFAULT NULL COMMENT '活动code',
              `email` varchar(64) NOT NULL COMMENT '绑定邮箱',
              `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
              PRIMARY KEY (`id`)
        ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
    ");
$installer->endSetup();